package com.tps.cloud.config;

import com.tps.cloud.handler.MybatisPlusMetaObjectHandler;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * mybatis plus 统一配置
 */
@AutoConfiguration
public class MybatisAutoConfiguration implements WebMvcConfigurer {
    /**
     * 审计字段自动填充
     * @return {@link MybatisPlusMetaObjectHandler}
     */
    @Bean
    public MybatisPlusMetaObjectHandler mybatisPlusMetaObjectHandler() {
		return new MybatisPlusMetaObjectHandler();
    }

}
